import request from '@/utils/request'

// 营业执照识别
export function BusinessLicense(query) {
    return request({
        url: '/api/ocr/BusinessLicense',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: query
    })
}
// 身份证反面识别
export function IdCardOCRBack(query) {
    return request({
        url: '/api/ocr/IdCardOCRBack',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: query
    })
}
// 身份证正面识别
export function IdCardOCRFace(query) {
    return request({
        url: '/api/ocr/IdCardOCRFace',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: query
    })
}

// 上传文件
export function uploadByServer(query) {
    return request({
        url: '/api/oss/upload',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: query
    })
}
